-- enter_unreal
-- Created by chengb Apr/13/2016
-- 进入夹层

return {
    apply = function(source, target, classId, value)
        local unrealId = value;
        if type(unrealId) ~= "number" then
            error("夹层编号配置错误！");
            return;
        end

        if not UnrealDungeonM.query(unrealId) then
            trace("enter_unreal", "夹层%d不存在", unrealId);
            return;
        end

        -- 开始夹层迷宫
        UnrealDungeonM.startDungeon(unrealId);
    end,
}
